package com.cn.medicalcare.service;

import com.cn.medicalcare.pojo.AllPage;
import com.cn.medicalcare.pojo.News;
import com.cn.medicalcare.pojo.Page;

import java.util.List;

public interface NewsService {

    List<News> selectNewsInPage(AllPage<News> allPage);

    int selectNewsCount(News news);

    boolean insertNews(News news);

    boolean updateNews(News news);

    List<News> selectHomeNews();

    int selectNewsCountByCateId(int cate_id);

    List<News> selectNewsByCateId(int cate_id, Page page);
}
